home *** CD-ROM | disk | FTP | other *** search
/ World Wide Web Encyclopedia / World Wide Web Encyclopedia CD.iso / pc / wwwe / logs / archcmds.log next >
Encoding:
Text File  |  1995-09-18  |  37.8 KB  |  1,109 lines

  1. archie> manpage
  2.  
  3.  
  4.  
  5. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  6.  
  7.  
  8.  
  9. NAME
  10.      archie(tm) - Internet archive server listing service
  11.  
  12. SYNOPSIS
  13.      archie
  14.  
  15. DESCRIPTION
  16.      This manual page describes Version 3 of the  archie  system.
  17.      This Internet information service allows the user to query a
  18.      catalog containing a list of files which  are  available  on
  19.      hosts  connected  to  the Internet. Software located through
  20.      this service can be obtained by means of ftp(1);  for  hosts
  21.      with  access  to BITNET/NetNorth/EARN, it can be obtained by
  22.      electronic mail through the Princeton bitftp  (1L)  service.
  23.      Send mail to
  24.  
  25.                          bitftp@pucc.princeton.edu
  26.  
  27.      Other Internet users who are not directly connected may  use
  28.      the services of various ftp-by-mail servers including
  29.  
  30.                          ftpmail@decwrl.dec.com
  31.  
  32.      Some archie systems track  archive  sites  globally,  others
  33.      only  track  the  archive  sites in their country, region or
  34.      continent in order  to  reduce  the  load  on  trans-oceanic
  35.      links.  There are a number of archie hosts serving different
  36.      continental user communities. The servers command will  list
  37.      the most up-to-date information on archie servers worldwide.
  38.  
  39.      archie.au                   Australia
  40.      archie.edvz.uni-linz.ac.at  Austria
  41.      archie.univie.ac.at         Austria
  42.      archie.uqam.ca              Canada
  43.      archie.cs.mcgill.ca         Canada
  44.      archie.funet.fi             Finland
  45.      archie.univ-rennes1.fr      France
  46.      archie.th-darmstadt.de      Germany
  47.      archie.ac.il                Israel
  48.      archie.unipi.it             Italy
  49.      archie.wide.ad.jp           Japan
  50.      archie.hana.nm.kr           Korea
  51.      archie.sogang.ac.kr         Korea
  52.      archie.uninett.no           Norway
  53.      archie.rediris.es           Spain
  54.      archie.luth.se              Sweden
  55.      archie.switch.ch            Switzerland
  56.      archie.ncu.edu.tw           Taiwan
  57.      archie.doc.ic.ac.uk         United Kingdom
  58.      archie.hensa.ac.uk          United Kingdom
  59.      archie.unl.edu              USA (NE)
  60.      archie.internic.net         USA (NJ)
  61.      archie.rutgers.edu          USA (NJ)
  62.      archie.ans.net              USA (NY)
  63.      archie.sura.net             USA (MD)
  64.  
  65.      archie can be accessed interactively, via electronic mail or
  66.      through  archie  client  programs  available  widely  on the
  67.      Internet.
  68.  
  69.  
  70.   Using the Interactive (telnet) Interface
  71.      In order to use the interactive system you  should  use  the
  72.      following procedure:
  73.  
  74.      1)   telnet to the archie system closest to you. Do not  use
  75.           ftp for this, it will not work.
  76.  
  77.      2)   Login as  user  archie  no  capitals,  no  password  is
  78.           required.  The system should print a banner message and
  79.           status report before presenting you  with  the  command
  80.           prompt.  Some newer operating systems will prompt for a
  81.           password. Just hit the return key and continue.
  82.  
  83.      3)   Type help for complete information on the system.
  84.  
  85.      For full details, refer to the section entitled ARCHIE  COM-
  86.      MANDS which appears below.
  87.  
  88.  
  89.   Using the Electronic Mail Interface
  90.      In order to use the email interface, send requests to:
  91.  
  92.           archie@<archie_server>
  93.  
  94.      where <archie_server> is one of the hosts listed  above,  or
  95.      one  returned by the servers command.  Send the word help in
  96.      a message  to  obtain  a  list  of  available  commands  and
  97.      features.   This is a completely automated interface, acting
  98.      without human intervention.
  99.  
  100.      For full details, refer to the section entitled ARCHIE  COM-
  101.      MANDS which appears below.
  102.  
  103.   Using the archie clients
  104.      The source code as well as machine executables for a variety
  105.      of  archie  client  programs  can  be obtained via anonymous
  106.      ftp(1) from many of the archie server  hosts  listed  above.
  107.      They   are   usually   stored   in   the  archie/clients  or
  108.      pub/archie/clients directories.  These  clients  communicate
  109.      via the Prospero
  110.  
  111.      distributed file system protocol with archie servers,  which
  112.      perform  the specified queries and return the results to the
  113.      user. Currently there are Unix and VMS command line,  curses
  114.      and X window clients as well as Mac and PC Windows versions.
  115.      For more information on Prospero send your queries to  info-
  116.      prospero-request@isi.edu
  117.  
  118.  
  119.   Communicating with the Database Administrators
  120.      Mail to archie administrators at a particular archie  server
  121.      should be sent to the address
  122.  
  123.           archie-admin@<archie_server>
  124.  
  125.      where <archie_server> is one of the hosts listed above.
  126.  
  127.      To send mail to  the  implementors  of  the  archie  system,
  128.      please send mail to
  129.  
  130.           archie-group@bunyip.com
  131.  
  132.      The archie server system is a product of Bunyip  Information
  133.      Systems.
  134.  
  135.      Requests for additions to the set of hosts surveyed for  the
  136.      catalog,  modifications to the Software Description Catalog,
  137.      or other administrative matters, should be sent to:
  138.  
  139.           archie-admin@bunyip.com
  140.  
  141. ARCHIE COMMANDS
  142.      In the archie system version 3 the telnet and email  clients
  143.      accept  a  common  set  of commands. Additionally, there are
  144.      specialized commands specfic to the  particular  interfaces.
  145.      See  THE  INTERACTIVE INTERFACE and THE EMAIL INTERFACE sec-
  146.      tions below for a list of these commands.
  147.  
  148.      Note that some archie server sites may disable some  of  the
  149.      commands for reasons particular to their site.  As well some
  150.      sites limit the number of  concurrent  interactive  (telnet)
  151.      sessions to better utilize limited resources.
  152.  
  153.   Commands
  154.      Arguments to commands shown  in  square  brackets  '[]'  are
  155.      optional; all others are mandatory.
  156.  
  157.      find <pattern>
  158.  
  159.      prog <pattern>
  160.           This command produces a list of files matching the pat-
  161.           tern  <pattern>.  The <pattern> may be interpreted as a
  162.           simple substring, a case sensitive substring, an  exact
  163.           string  or a regular expression, depending on the value
  164.           of the search variable.  The output  normally  contains
  165.           such information as the file name that was matched, the
  166.           directory path leading to it, the  site  containing  it
  167.           and  the time at which that site was last updated.  The
  168.           format of  the  output  can  be  selected  through  the
  169.           output_format variable.  The results are sorted accord-
  170.           ing to the value of the sortby variable, and  are  lim-
  171.           ited in number by the maxhits variable.
  172.  
  173.           prog is identical to find.  It is included for backward
  174.           compatibility with older versions of the system.
  175.  
  176.      help [<topic> [<subtopic>] ...]
  177.           Invokes the help system and presents help on the speci-
  178.           fied  topic.   A  list of words is considered to be one
  179.           topic, not a list of individual topics. Thus,
  180.  
  181.                help set maxhits
  182.  
  183.           requests help on the subtopic maxhits of topic set, not
  184.           on  two  separate  topics.  After help is presented the
  185.           user is placed in the help system at the deepest  level
  186.           containing subtopics.
  187.  
  188.           For example, after typing
  189.  
  190.                help set maxhits
  191.  
  192.           and being shown the information for that topic the user
  193.           is placed at the level set in the help hierarchy.
  194.  
  195.      list [<pattern>]
  196.           Produce a list of sites whose contents are contained in
  197.           the  archie catalog. With no argument all the sites are
  198.           listed. If given, the <pattern> argument is interpreted
  199.           as  a  regular  expression  (See  "REGULAR EXPRESSIONS"
  200.           below) against which to match site  names:  only  those
  201.           names  matching  are  printed. The format of the output
  202.           can be selected through the output_format variable.
  203.  
  204.           Note that the numerical (IP) address associated with  a
  205.           site  name  was  valid  at  the  last time the site was
  206.           updated in the archie catalog but may have been changed
  207.           subsequently.   Furthermore,  the  listed IP address is
  208.           the primary address as listed in the Domain Name System
  209.           (secondary addresses are not stored).
  210.  
  211.           Example:
  212.  
  213.                list
  214.  
  215.           lists all sites in the catalog, while
  216.  
  217.                list .de$
  218.  
  219.           lists all German sites.
  220.  
  221.      mail  <address>
  222.           Mail the result of the last command that produced  out-
  223.           put (eg. find, whatis, list) to <address>. This must be
  224.           a vaid email address.
  225.  
  226.      manpage  [ roff | ascii ]
  227.           Display  the  archie  manual  page  (this  file).   The
  228.           optional  arguments  specify the format of the returned
  229.           document. roff specifies  UNIX  troff(1)  format  while
  230.           ascii  specifies plain, preformatted ASCII output. With
  231.           no arguments it defaults to ascii.
  232.  
  233.      domains
  234.           Asks the current server for  the  list  of  the  archie
  235.           pseudo-domains  that it supports. See the entry for the
  236.           match_domain variable  below.  This  command  takes  no
  237.           arguments.
  238.  
  239.           Example:
  240.  
  241.                domains
  242.  
  243.           requests the list of pseudo-domains  from  the  server.
  244.           The result looks (in part) something like this:
  245.  
  246.           africa               Africa               za
  247.           anzac                OZ & New Zealand     au:nz
  248.           asia                 Asia                 kr:hk:sg:jp:cn:my:tw:in
  249.           centralamerica       Central America      sv:gt:hn
  250.           easteurope           Eastern Europe       bg:hu:pl:cs:ro:si:hr
  251.           mideast              Middle East          eg:.il:kw:sa
  252.           northamerica         North America        usa:ca:mx
  253.           scandinavia          Scandinavia          no:dk:se:fi:ee:is
  254.           southamerica         South American       ar:bo:br:cl:co:cr:cu:ec:pe
  255.           usa                  United States        edu:com:mil:gov:us
  256.           westeurope           Western Europe       westeurope1:westeurope2
  257.           world                The World            world1:world2
  258.  
  259.  
  260.           The first column gives the names of pseduo-domains sup-
  261.           ported  by  the  server.  The second gives the "natural
  262.           language" description  of  the  pseudo-domain  and  the
  263.           third   column  is  the  actual  definitions  of  those
  264.           domains. Thus here the "asia" domain  is  comprised  of
  265.           the  Domain Name System country codes for Korea ("kr"),
  266.           Hong Kong ("hk"), Singapore ("sg") etc.  Pseudo-domains
  267.           may also be constructed from other pseudo-domains: thus
  268.           one component  of  the  the  "northamerica"  domain  is
  269.           itself constructed from the "usa" pseudo-domain.
  270.  
  271.      motd Re-display the "message of the day", which is  normally
  272.           printed  when  the user initially logs on to the client
  273.           (in the case of the interactive interface)  or  at  the
  274.           start of the returned message (in the email interface).
  275.  
  276.      servers
  277.           Display  a  list  of  all  publicly  accessible  archie
  278.           servers  worldwide.  The  names  of the hosts, their IP
  279.           addresses and geographical locations are listed.
  280.  
  281.      set <variable-name> [<value>]
  282.           Set the specified variable.  Variables are used to con-
  283.           trol  various  aspects  of the way archie operates; the
  284.           interpretation of <pattern> arguments,  the  format  of
  285.           output  from  various  commands,  etc.  See the section
  286.           below on variables for a description  of  each  one  as
  287.           well as the entries for unset and show.
  288.  
  289.      show [<variable-name> ...]
  290.           Without any argument, display the  status  of  all  the
  291.           user-settable  variables, including such information as
  292.           its type (boolean, numeric, string), whether or not  it
  293.           is  set  and  its current value (if its type requires a
  294.           value).  Otherwise show  the  status  of  each  of  the
  295.           specified arguments.
  296.  
  297.           Example:
  298.  
  299.                show maxhits
  300.  
  301.      site <sitename>
  302.           This command is currently unimplemented under version 3
  303.           of the archie system.
  304.  
  305.      unset variable
  306.           Remove any value associated with  the  specified  vari-
  307.           able.   This  may  cause  counter-intuitive behavior in
  308.           some cases; for example, if maxhits is not  defined  by
  309.           the  user,  the  find  command  will print the internal
  310.           default number of  matches  rather  than  an  unlimited
  311.           number of matches.
  312.  
  313.      version
  314.           Print the current version of the client.
  315.  
  316.      whatis <substring>
  317.           Search the Software Description Catalog for  the  given
  318.           substring,  ignoring  case.   This  catalog consists of
  319.           names and short descriptions of many software packages,
  320.           documents  (like  RFCs  and  educational material), and
  321.           data files stored on the Internet.
  322.  
  323.           Example:
  324.  
  325.                whatis uucp
  326.  
  327.           in part gives as a result:
  328.  
  329.                findpath.sh             UUCP Pathfinder
  330.                logfile-stats           UUCP LOGFILE analyzer
  331.                mapstats                UUCP map  statistics  pro-
  332.                gram
  333.  
  334.   Variable Types
  335.      The behavior of archie can be modified by certain variables,
  336.      the values of which may be changed using the set command, or
  337.      removed entirely by the  unset  command.   There  are  three
  338.      variable types:
  339.  
  340.      boolean        (Set or unset)
  341.  
  342.      numeric        (Integer within a defined range)
  343.  
  344.      string         (String of characters which may or may not be
  345.                     restricted).
  346.  
  347.                     If the value of a string variable should con-
  348.                     tain  leading  or  trailing  spaces  then  it
  349.                     should be quoted.  Two ways of  quoting  text
  350.                     are  to  surround  it  with  a pair of double
  351.                     quotes (`"'), or to precede individual  char-
  352.                     acters  with  a  backslash  (`\').  (A double
  353.                     quote, or a backslash may itself be quoted by
  354.                     preceding  it by a backslash.)  The resulting
  355.                     value is that of the string with  the  quotes
  356.                     stripped off.
  357.  
  358.  
  359.   Numeric Variables
  360.      maxhits
  361.           Allow the find command to generate at most  the  speci-
  362.           fied  number  of  matches  (permissible  range: 0-1000;
  363.           default: 100).
  364.  
  365.           Example:
  366.  
  367.                set maxhits 100
  368.  
  369.           halts prog after 100 matches have been found in total.
  370.  
  371.      maxhitspm
  372.           Across all the anonymous FTP archives on  the  Internet
  373.           (and  even  on  one  single anonymous FTP archive) many
  374.           files will have the same  name.  For  example,  if  you
  375.  
  376.  
  377.  
  378. Sun Release 4.1     Last change: 12 Apr 1994                    7
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  386.  
  387.  
  388.  
  389.           search for a very common filename like "README" you can
  390.           get hundreds even thousands of matches. You  can  limit
  391.           the  number  of  files  with the same name through this
  392.           variable. For example,
  393.  
  394.                set maxhitspm 100
  395.  
  396.           tells the system only 100 files  with  the  same  name.
  397.           Note  that the overall maximum number of files returned
  398.           is still controlled with the 'maxhits' variable.
  399.  
  400.      maxmatch
  401.           This variable will limit the number filenames returned.
  402.           For  example, if maxmatch is set to 2 and you perform a
  403.           substring search for the string "etc", and the  catalog
  404.           contains  filenames  "etca", "betc" and "detc" only the
  405.           filenames "etca" and "betc" will be returned.  However,
  406.           depending  on  the  values of maxhitspm and maxhits you
  407.           will get back a  number  of  actual  files  with  those
  408.           names. Example:
  409.  
  410.                set maxmatch 20
  411.  
  412.  
  413.  
  414.      max_split_size
  415.           Approximate maximum size, in bytes, of  a  file  to  be
  416.           mailed  to  the user.  Any output larger than this will
  417.           be split in pieces of about this size.  This can be set
  418.           by the user in the range 1024 to ~2Gb with a default of
  419.           51200 bytes.
  420.  
  421.   String Variables
  422.      compress
  423.           The kind of data compression the user can specify  when
  424.           mailing back output.  Currently allowed values are none
  425.           and compress (standard UNIX compress(1),withadefaultof
  426.  
  427.      encode
  428.           The type of  post-compression  encoding  the  user  can
  429.           specify  when  mailing  back output.  Currently allowed
  430.           values are none and uuencode, with a default  of  none.
  431.           Note  that  this variable is ignored unless compression
  432.           is enabled (via the compress) variable.
  433.  
  434.      language
  435.           Allows the user to specify the language  in  which  the
  436.           help,  etc.  is presented.  Currently the default value
  437.           is english.
  438.  
  439.      mailto
  440.           If the mail command is issued with no  arguments,  mail
  441.           the output of the last command to the address specified
  442.           by this string variable.  Initially  this  variable  is
  443.           unset.
  444.  
  445.           Example:
  446.  
  447.                set mailto user@frobozz.com
  448.  
  449.           Conventional Internet addressing styles are understood.
  450.           BITNET sites should use the convention:
  451.  
  452.                user@sitename.bitnet
  453.  
  454.           UUCP addresses can be specified as
  455.  
  456.                user@sitename.uucp
  457.  
  458.      match_domain
  459.           This variable allows users to  restrict  the  scope  of
  460.           their  search  based  upon  the  Fully Qualified Domain
  461.           Names (FQDN) of the anonymous FTP sites being searched.
  462.           In  this  way,  the  user can specify a colon-separated
  463.           list of domain names to which all returned  sites  must
  464.           match.  Each  component  in  the  list  is taken as the
  465.           rightmost part of the FQDN. For example,
  466.  
  467.                set match_domain ca:internic.net:harvard.edu
  468.  
  469.           means that the names of all returned sites must end  in
  470.           "ca"  (Canada),  "internic.net"  (sites in the Internet
  471.           NIC) or "harvard.edu" (sites at Harvard University).
  472.  
  473.           While these are all real domain names, listing all pos-
  474.           sible  combinations  for  say,  the  USA, would quickly
  475.           become tedious (and if you think that is bad, try list-
  476.           ing  all  the  countries on the Internet in Europe). To
  477.           aid in this problem, the archie system has the  concept
  478.           of  pseudo-domains  to  allow  users to use a shorthand
  479.           notation when using this facility. These pseudo-domains
  480.           are defined on a server-by-server basis and you can use
  481.           the domains command to query your  current  server  for
  482.           its list of predefined pseudo-domains.
  483.  
  484.           A pseudo-domain is a list  of  real  DNS  domain  names
  485.           and/or a list of other pseudo-domains. For example, the
  486.           archie administrator on the  server  could  define  the
  487.           pseudo-domain
  488.  
  489.                "usa"
  490.  
  491.                to be
  492.  
  493.                "edu:mil:com:gov:us"
  494.  
  495.           If this definition existed  on  the  server,  then  you
  496.           could
  497.  
  498.                set match_domain usa
  499.  
  500.           which would be the same as saying
  501.  
  502.                set match_domain edu:mil:com:gov:us
  503.  
  504.           In addition, the server administrator may define
  505.  
  506.                "northamerica"
  507.  
  508.                to be
  509.  
  510.                "usa:ca:mx"
  511.  
  512.           meaning that "northamerica" is composed of the  pseudo-
  513.           domain  "usa"  and  the  real domains "ca" (Canada) and
  514.           "mx" (Mexico). This process can be repeated for 20 lev-
  515.           els  (more  than  sufficient for any naming scheme). By
  516.           using  the  domains  command  you  can  determine  what
  517.           pseudo-domains your current server supports.
  518.  
  519.      match_path
  520.           Sometimes you only would like your  search  (using  the
  521.           find  command)  to look for files or directories with a
  522.           certain set of names in their full path.
  523.  
  524.           For example, many  anonymous  FTP  site  administrators
  525.           will  put software packages for the MacIntosh in a path
  526.           containing the name "mac" or "macintosh". Another exam-
  527.           ple  is  when  a document exists in several formats and
  528.           you are only looking for the  PostScript  version.  You
  529.           can guess that the file may end in ".ps" or it maybe in
  530.           a directory called "ps" or "PostScript".
  531.  
  532.           This is usually guesswork, but is is useful to have the
  533.           archie  system  only look for files or directories with
  534.           particular components in their path name.
  535.  
  536.           This variable allows you to do this. The arguments  are
  537.           a  colon-separated  list  of  possible  path  name com-
  538.           ponents. In the last example above, saying
  539.  
  540.                set match_path ps:postscript
  541.  
  542.           will restrict the search only to match those  files  or
  543.           directories which have the strings "ps" or "postscript"
  544.           in their path.
  545.  
  546.           The comparison is always  case-insensitive  (regardless
  547.           of the value of the match variable) and there is a log-
  548.           ical OR connecting the components  so  that  the  above
  549.           statement  says:  "find  only  files which have 'ps' OR
  550.           'postscript'  in  their  path".  If  either   component
  551.           matches then the condition is satisfied.
  552.  
  553.      output_format
  554.           Affects  the  way  the  output  of  find  and  list  is
  555.           displayed.  User settable, with valid values of machine
  556.           (machine readable format), terse and  verbose,  with  a
  557.           default of verbose.
  558.  
  559.      search
  560.           The type of search done by the find (or prog)  command.
  561.           User  settable  with a range of exact, regex, sub, sub-
  562.           case, exact_regex, exact_sub and exact_subcase  with  a
  563.           default  of  sub.  (The exact_<x> types cause it to try
  564.           exact first, then fall back to type <x> if  no  matches
  565.           are found).  The values have the following meanings:
  566.  
  567.           exact
  568.                Exact match (the fastest method).  A match  occurs
  569.                if  the  file  (or  directory) name in the catalog
  570.                corresponds exactly to  the  user-given  substring
  571.                (including case).
  572.  
  573.                For example, this type of search could be used  to
  574.                locate all files called xlock.tar.Z
  575.  
  576.           regex
  577.                Allow user-specified (search) strings to take  the
  578.                form of ed(1) regular expressions.
  579.  
  580.                Note: unless specifically anchored to  the  begin-
  581.                ning  (with  ^)  or  end (with $) of a line, ed(1)
  582.                regular  expressions  (effectively)  have   ``.*''
  583.                prepended  and  appended to them.  For example, it
  584.                is not necessary to type
  585.  
  586.                     find .*xnlock.*
  587.  
  588.                because
  589.  
  590.                     find xnlock
  591.  
  592.                suffices.  In this instance, the  regex  match  is
  593.                equivalent a simple substring match.  Those unfam-
  594.                iliar with regular expressions should refer to the
  595.                section entitled REGULAR EXPRESSIONS which appears
  596.                below.
  597.  
  598.           sub  Substring (case insensitive).  A match  occurs  if
  599.                the  file  (or directory) name in the catalog con-
  600.                tains the user-given substring, without regard  to
  601.                case.
  602.  
  603.                Example:
  604.  
  605.                The pattern:
  606.  
  607.                     is
  608.  
  609.                matches any of the following:
  610.  
  611.                     islington
  612.                     this
  613.                     poison
  614.  
  615.           subcase
  616.                Substring (case sensitive).  As above, but  taking
  617.                case as significant.
  618.  
  619.                Example:
  620.  
  621.                The pattern:
  622.  
  623.                     TeX
  624.  
  625.                will match:
  626.  
  627.                     LaTeX
  628.  
  629.                but neither of the following:
  630.  
  631.                     Latex
  632.                     TExTroff
  633.  
  634.      server
  635.           the Prospero server to which the client  connects  when
  636.           find or list commands are invoked.  User settable, with
  637.           a default value of localhost.
  638.  
  639.      sortby
  640.           Set the method of sorting to be applied to output  from
  641.           the  find command.  Typing the keyboard interrupt char-
  642.           acter (generally Cntl-C on UNIX hosts) aborts a search.
  643.           This  will  also  dequeue  the request from the server.
  644.           Unlike previous versions of the archie system,  version
  645.           3 does not allow partial results.  The output phase may
  646.           be aborted by typing the abort character a second time.
  647.           The   five  permitted  methods  (and  their  associated
  648.           reverse orders) are:
  649.  
  650.           none Unsorted (default; no reverse order, though  rnone
  651.                is accepted)
  652.  
  653.           filename
  654.                Sort  files/directories  by  name,  using  lexical
  655.                order (reverse order: rfilename)
  656.  
  657.           hostname
  658.                Sort on the archive  hostname,  in  lexical  order
  659.                (reverse order: rhostname)
  660.  
  661.           size Sort  by  size,  largest  files/directories  first
  662.                (reverse order: rsize)
  663.  
  664.           time Sort by modification time, with  the  most  recent
  665.                file/directory names first (reverse order: rtime)
  666.  
  667. THE INTERACTIVE (TELNET) INTERFACE
  668.      The interactive interface accepts the following commands and
  669.      variables in addtion to those listed above.
  670.  
  671.   Commands
  672.      stty [[<option> <character>] ...]
  673.           This command allows the user to change the  interpreta-
  674.           tion  of  specified characters, in order to match their
  675.           particular terminal type.  At the moment only erase  is
  676.           recognized  as an <option>.  (Typically, <character> is
  677.           a control character and may be specified as a  pair  of
  678.           characters  (e.g. control-h as the pair '^' followed by
  679.           'h'), the character itself (literal), or  as  a  quoted
  680.           pair or literal.
  681.  
  682.           Without any arguments the command displays the  current
  683.           values of the recognized options.
  684.  
  685.      mail [<address>]
  686.           The output of the previous successful command (i.e.  an
  687.           invocation  of  find, list or whatis that produced out-
  688.           put)  is  mailed  to  the  specified  electronic   mail
  689.           address.  If  no <address> is given the contents of the
  690.           mailto variable are used. If this variable is  not  set
  691.           then  an  error occurs, and nothing is mailed, although
  692.           the output is still available to be mailed.
  693.  
  694.           Example:
  695.  
  696.                mail user1@hello.edu
  697.  
  698.           Conventional Internet addressing styles are understood.
  699.           BITNET sites should use the convention:
  700.  
  701.                user@sitename.bitnet
  702.  
  703.           UUCP addresses can be specified as
  704.  
  705.                user@sitename.uucp
  706.  
  707.      pager
  708.           This command is included only for backward  compatibil-
  709.           ity.   It has the same effect as set pager.  Its use is
  710.           discouraged and it will be removed in a future release.
  711.  
  712.      nopager
  713.           This command is included only for backward  compatibil-
  714.           ity.   It  has the same effect as unset pager.  Its use
  715.           is discouraged and it  will  be  removed  in  a  future
  716.           release.
  717.  
  718.   Variables
  719.      autologout
  720.           Set the length of idle time (in minutes) allowed before
  721.           automatic  logout  (permissible  range: 1-300; default:
  722.           60).
  723.  
  724.           Example:
  725.  
  726.                set autologout 45
  727.  
  728.           logs the user out after 45 minutes of idle time.
  729.  
  730.      pager
  731.           Filter all output through the default  pager  (default:
  732.           unset).   When using the pager you may also want to set
  733.           the term variable to your terminal type (see term vari-
  734.           able).
  735.  
  736.           Example:
  737.  
  738.                set pager
  739.  
  740.      status
  741.           When set this variable will cause the system to  report
  742.           the  position  in  the  queue  of  your  request on the
  743.           server. In addition, it will display the estimated time
  744.           to  completion  of your request. This estimate is based
  745.           in an average of the amount of  times  similar  queries
  746.           have  taken  in  the past several minutes. The variable
  747.           also controls the display of  a  "spinner"  during  the
  748.           catalog  search,  which  indicates that we are awaiting
  749.           results from the Prospero server. Set by default.
  750.  
  751.      term Specify the type of terminal in  use  (and  optionally,
  752.           its  size  in  rows  and columns).  This information is
  753.           used by the pager.
  754.  
  755.           The usage is:
  756.  
  757.                set term <terminal-type> [<#rows> [<#columns>]]
  758.  
  759.           The terminal type is mandatory, but the number of  rows
  760.           and  columns  is optional; specify either rows only, or
  761.           both rows and columns (default: 24 rows,  80  columns).
  762.           The default value for this variable is dumb. However it
  763.           may be set automatically through  the  telnet  protocol
  764.           negotiation.
  765.  
  766.           Examples:
  767.  
  768.                set term vt100
  769.                set term xterm 60
  770.                set term xterm 24 100
  771.  
  772. THE EMAIL INTERFACE
  773.      The archie email interface currently accepts  the  following
  774.      commands in addition to those listed in the COMMANDS section
  775.      above.
  776.  
  777.      path <address> is an alias for
  778.  
  779.           set mailto <address>
  780.  
  781.      quit Ignore any further lines past this point in  the  mail.
  782.           This  is  generally  not  needed,  but  can  be used to
  783.           prevent the system from interpreting signatures etc. as
  784.           archie commands.
  785.  
  786.      The Subject: line in incoming mail is  processed  as  if  it
  787.      were part of the main message body.
  788.  
  789.      A message not containing a valid request will be treated  as
  790.      a help request.
  791.  
  792. REGULAR EXPRESSIONS
  793.      Regular expressions follow the conventions of the ed(1) com-
  794.      mand,  allowing sophisticated pattern matching.  In the fol-
  795.      lowing discussion, the string containing a  regular  expres-
  796.      sion  will be called the ``pattern'', and the string against
  797.      which  it  is  to  be  matched  is  called  the  ``reference
  798.      string''.  Regular expressions imbue certain characters with
  799.      special meaning, providing a  quoting  mechanism  to  remove
  800.      this special meaning when required.
  801.  
  802.      The rules governing regular expression are:
  803.  
  804.      c    A  character  c  matches  itself  unless  it  has  been
  805.           assigned  a special meaning as listed below.  A special
  806.           character loses its special meaning  when  preceded  by
  807.           the  character  '\'.  This does not apply to '{', which
  808.           is non-special until it is so treated.  Thus,  although
  809.           '*'  normally  has  special  meaning,  the  string '\*'
  810.           matches itself.
  811.  
  812.           Example:
  813.  
  814.           The pattern
  815.  
  816.                acdef
  817.  
  818.           matches any of the following:
  819.  
  820.                s83acdeffff
  821.                acdefsecs
  822.                acdefsecs
  823.  
  824.           but neither of the following:
  825.  
  826.                accdef
  827.                aacde1f
  828.  
  829.           Example:
  830.  
  831.           Normally the characters '*'  and '$' are  special,  but
  832.           the pattern
  833.  
  834.                a\*bse\$
  835.  
  836.           acts as above.  Any reference string containing:
  837.  
  838.                a*bse$
  839.  
  840.           as a substring will be flagged as a match.
  841.  
  842.      .    A period (known as a wildcard  character)  matches  any
  843.           character except the newline character.
  844.  
  845.           Example:
  846.  
  847.           The pattern
  848.  
  849.                ....
  850.  
  851.           will match any 4 characters in  the  reference  string,
  852.           except a newline character.
  853.  
  854.      ^    A caret (^) appearing at the  beginning  of  a  pattern
  855.           requires  that the reference string must start with the
  856.           specified pattern (an escaped caret, or a caret appear-
  857.           ing  elsewhere  in  the  pattern,  is treated as a non-
  858.           special character).
  859.  
  860.           Example:
  861.  
  862.           The pattern
  863.  
  864.                ^efghi
  865.  
  866.           The pattern will match  only  those  reference  strings
  867.           starting  with efghi; thus, it will match either of the
  868.           following:
  869.  
  870.                efghi
  871.                efghijlk
  872.  
  873.           but not:
  874.  
  875.                abcefghi
  876.  
  877.      $    A dollar sign ($) appearing at the  end  of  a  pattern
  878.           requires that the pattern appear at the end of a refer-
  879.           ence string (an escaped dollar sign, or a  dollar  sign
  880.           appearing  elsewhere,  is  treated as a regular charac-
  881.           ter).
  882.  
  883.           Example:
  884.  
  885.           The pattern
  886.  
  887.                efghi$
  888.  
  889.           Will match either of the following:
  890.  
  891.                efghi abcdefghi
  892.  
  893.           but not:
  894.  
  895.                efghijkl
  896.  
  897.      [string]
  898.           Match any single character within  the  brackets.   The
  899.           caret  (^)  has  a  special  meaning if it is the first
  900.           character in the series: the  pattern  will  match  any
  901.           character other than one in the list.
  902.  
  903.           Example:
  904.  
  905.           The pattern
  906.  
  907.                [^abc]
  908.  
  909.           Will match any character except one of:
  910.  
  911.                a
  912.                b
  913.                c
  914.  
  915.           To match a right bracket (]) in the list, put it first,
  916.           as in:
  917.  
  918.                []ab01]
  919.  
  920.           A caret appearing anywhere but the in first position is
  921.           treated as a regular character.
  922.  
  923.           The minus (-) character is special within square brack-
  924.           ets.   It is used to define a range of ASCII characters
  925.           to be matched.  For example, the pattern:
  926.  
  927.                [a-z]
  928.  
  929.           matches any lower case letter.  The minus can  be  made
  930.           non-special  by  placing  it  first  or last within the
  931.           square brackets.  The characters '$', '*' and  '.'  are
  932.           not special within square brackets.
  933.  
  934.           Example:
  935.  
  936.           The pattern
  937.  
  938.                [ab01]
  939.  
  940.           matches a single occurrence of  a  character  from  the
  941.           set:
  942.  
  943.                a
  944.                b
  945.                0
  946.                1
  947.  
  948.           Example:
  949.  
  950.           The pattern
  951.  
  952.                [^ab01]
  953.  
  954.           will match any single character other than one from the
  955.           set:
  956.  
  957.                a
  958.                b
  959.                0
  960.                1
  961.  
  962.           Example :
  963.  
  964.           The pattern
  965.  
  966.                [a0-9b]
  967.  
  968.           matches one of the characters:
  969.  
  970.                a
  971.                b
  972.  
  973.           or a digit between 0 and 9, inclusive.
  974.  
  975.           Example :
  976.  
  977.           The pattern
  978.  
  979.                [^a0-9b.$]
  980.  
  981.           matches any single character which is not in the set:
  982.  
  983.                a
  984.                b
  985.                .
  986.                $
  987.  
  988.           or a digit between 0 and 9, inclusive.
  989.  
  990.      *    Match  zero  or  more  occurrences  of  an  immediately
  991.           preceding regular expression.
  992.  
  993.           Example:
  994.  
  995.           The pattern
  996.  
  997.                a*
  998.  
  999.           matches zero or more occurrences of the character:
  1000.  
  1001.                a
  1002.  
  1003.           Example:
  1004.  
  1005.           The pattern
  1006.  
  1007.                [A-Z]*
  1008.  
  1009.           matches zero or more  occurrences  of  the  upper  case
  1010.           alphabet.
  1011.  
  1012.      \{m\}
  1013.           Match exactly m  occurrences  of  a  preceding  regular
  1014.           expression, where m is a non-negative integer between 0
  1015.           and 255 (inclusive).
  1016.  
  1017.           Example:
  1018.  
  1019.           The pattern
  1020.  
  1021.                ab\{3\}
  1022.  
  1023.           matches any substring in the reference string  consist-
  1024.           ing  of the character `a' followed by exactly three `b'
  1025.           characters.
  1026.  
  1027.      \{m,\}
  1028.           Match at least m occurrences of the  preceding  regular
  1029.           expression.
  1030.  
  1031.           Example:
  1032.  
  1033.           The pattern
  1034.  
  1035.                ab\{3,\}
  1036.  
  1037.           matches any substring in the reference  string  of  the
  1038.           character  `a'  followed  by at least three `b' charac-
  1039.           ters.
  1040.  
  1041.      \{m,n\}
  1042.           Match between m and n occurrences of the preceding reg-
  1043.           ular  expression  (where  n  is  a non-negative integer
  1044.           between 0 and 255, and n>m).
  1045.  
  1046.           Example:
  1047.  
  1048.           The pattern
  1049.  
  1050.                ab\{3,5\}
  1051.  
  1052.           matches any substring in the reference string  consist-
  1053.           ing of the character `a' followed by at least three but
  1054.           at most five `b' characters.
  1055.  
  1056.   Tips for Using Regular Expressions
  1057.      1)   When matching a substring it is not  necessary  to  use
  1058.           the  wildcard character to match the part of the refer-
  1059.           ence string preceding and following the substring.
  1060.  
  1061.           Example:
  1062.  
  1063.           The pattern
  1064.  
  1065.                abcd
  1066.  
  1067.           will match any reference string  containing  this  pat-
  1068.           tern.  It is not necessary to use
  1069.  
  1070.                .*abcd.*
  1071.  
  1072.           as the pattern.
  1073.  
  1074.      2)   In order to constrain a pattern to the entire reference
  1075.           pattern, use the construction:
  1076.  
  1077.                ^pattern$
  1078.  
  1079.      3)   The '[]' operator provides an easy mechanism to  obtain
  1080.           case insensitivity.  For example, to match the word:
  1081.  
  1082.                hello
  1083.  
  1084.           regardless of case, use the pattern:
  1085.  
  1086.                [Hh][Ee][Ll][Ll][Oo]
  1087.  
  1088. THE ARCHIE DATABASE
  1089.      The archie catalog subsystem maintains a list of about  1200
  1090.      Internet anonymous ftp(1) archive sites of approximately 2.5
  1091.      million unique filenames themselves containing 200 Gigabytes
  1092.      (that is, 200,000,000,000 bytes) of information. The current
  1093.      catalog requires about 400 MB of disk storage.
  1094.  
  1095. SEE ALSO
  1096.      bitftp (1L), ftp(1), telnet(1), archie(1), xarchie(1)
  1097.  
  1098. AUTHORS
  1099.  
  1100.      Bunyip Information Systems Inc., Montreal Canada
  1101.      (info@bunyip.com).  Original manual page by R. P. C.  Rodgers,
  1102.      UCSF School of Pharmacy, San Francisco, California 94143
  1103.      (rodgers@maxwell.mmwb.ucsf.edu), Nelson H.  F.  Beebe
  1104.      (beebe@math.utah.edu), and Alan Emtage (bajan@bunyip.com).
  1105.      Partial funding contributed by Trevor Hales
  1106.      (hales@mel.dit.cicsiro.au)
  1107.  
  1108.      archie is a registered trademark of Bunyip Information Systems, Inc.
  1109.